package com.py.gs.businese.unionbattletest;

public class UnionBattleTest1 {
	
	public static void main(String[] args) {
		int n = 1000;
		long totalBattleCount = 0;
		long begin = System.currentTimeMillis();
		for (int i = 0; i < n; i++) {
			UnionBattleService5 service = new UnionBattleService5(500, 50, 10000);
			service.battle();
			totalBattleCount += service.battleCount;
//			System.out.println("单次大臣战斗次数:" + service.battleCount);
		}
		long end = System.currentTimeMillis();
		long costTime = end - begin;
		System.out.println(n + "次总耗时:" + costTime);
		System.out.println(n + "次总对战次数:" + totalBattleCount);
		System.exit(0);
	}
}
